import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import pinia from "./store";

// 导入ElementPlus图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

// 创建应用实例
const app = createApp(App);

// 注册所有ElementPlus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// 使用插件
app.use(router);
app.use(pinia);

// 挂载应用
app.mount("#app");
